<script setup>
import { RouterView } from 'vue-router'
</script>

<template>
  <div class="app">
    <main class="app-main">
      <RouterView />
    </main>
    <footer class="app-footer">
      <p>© 2024 轻客管家系统 版权所有</p>
    </footer>
  </div>
</template>

<style>
/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#app {
  height: 100%;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  background-color: #f5f5f5;
}

.app-footer {
  background-color: #fafafa;
  border-top: 1px solid #e8e8e8;
  padding: 16px 24px;
  text-align: center;
  color: #666;
}
</style>
